<?php

namespace app\api\model;

use think\Model;

class ProductImage extends BaseModel
{

    protected $hidden = [ 'delete_time', 'update_time', 'create_time', 'from', 'pivot', 'img_id', 'category_id', 'product_id'];

    public function img()
    {
        return $this->belongsTo('Image', 'img_id', 'id');
    }

}
